package com.kzx.blog.config.model;

/**
 * @author kongz
 * @version 1.0 2021/11/23 10:47
 * @description 异常处理类
 */
public class FailedException extends RuntimeException{
    protected int errorCode;
    protected String errorMsg;

    public FailedException() {
    }

    public FailedException(int errorCode, String errorMsg) {
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }

    public int getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }
}
